package com.wat.domain;

public class Address {

	AddressDetail addressDetail;
	String address;
	String phone;

	public Address() {
	}

	@Override
	public String toString() {
		return "Address{" +
				"addressDetail=" + addressDetail +
				", address='" + address + '\'' +
				", phone='" + phone + '\'' +
				'}';
	}

	public Address(AddressDetail addressDetail, String address, String phone) {
		this.addressDetail = addressDetail;
		this.address = address;
		this.phone = phone;
	}

	public AddressDetail getAddressDetail() {
		return addressDetail;
	}

	public void setAddressDetail(AddressDetail addressDetail) {
		System.out.println("setAddressDetail()");
		this.addressDetail = addressDetail;
	}

	public Address(String address, String phone) {
		this.address = address;
		this.phone = phone;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

}
